<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div class="userInfo">
<p>
    Passwords are required to be a minimum of
    <%=Html.Encode(ViewData["PasswordLength"])%>
    characters in length.
</p>
<%= Html.ValidationSummary("Account creation was unsuccessful. Please correct the errors and try again.") %>
<% using (Html.BeginForm()) { %>
<div>
    <fieldset>
        <legend>Register a new Account</legend>
        
        <p>
            <label for="username">Username</label>
            <%= Html.TextBox("username") %>
            <%= Html.ValidationMessage("username") %>
        </p>
        <p>
            <label for="email">Email</label>
            <%= Html.TextBox("email") %>
            <%= Html.ValidationMessage("email") %>
        </p>
        <p>
            <label for="password" title="Passwords are required to be a minimum of <%=Html.Encode(ViewData["PasswordLength"])%> characters in length.">Password</label>
            <%= Html.Password("password") %>
            <%= Html.ValidationMessage("password") %>
        </p>
        <p>
            <label for="confirmPassword">Confirm password</label>
            <%= Html.Password("confirmPassword") %>
            <%= Html.ValidationMessage("confirmPassword") %>
        </p>
        
        <p>OR...</p>
        <p>
        
            <label for="openidIdentifier">Open ID</label>
            <%= Html.TextBox("openidIdentifier")%>
            <%= Html.ValidationMessage("openidIdentifier")%>
        </p>

        
        <p>
                 <%= Html.CheckBox("rememberMe") %> <label class="inline" for="rememberMe">Remember me?</label>
                </p>
        <p>
            <input type="submit" value="Register" />
        </p>
    </fieldset>
</div>
<% } %>
</div>